﻿
using ModularAndPlugin.Core.Composition;

namespace UI.Web.MVC
{
    using ModularAndPlugin.Core.IOC.ServiceLocation;
    using ModularAndPlugin.WebApp.MVCComposition;
    public class MvcApplication : Application
    {
        #region Fields
        private CustomExportProvider exportProvider;
        #endregion

        #region Methods
        /// <summary>
        /// Creates the instance of the Unity container.
        /// </summary>
        protected override void PreCompose()
        {
            exportProvider = new CustomExportProvider();
        }
        /// <summary>
        /// Creates the composer used for composition.
        /// </summary>
        /// <returns></returns>
        protected override Composer CreateComposer()
        {
            var composer = base.CreateComposer();
            composer.AddExportProvider(exportProvider);
            return composer;
        }



        #endregion
    }
}